package org.cid54.bukkit.command;

import org.bukkit.event.player.PlayerChatEvent;
import org.cid54.bukkit.Cid54PlayerListener;
import org.cid54.bukkit.command.util.PlayerCommand;

/**
 *
 * @author fgo
 */
public class HealCommand implements PlayerCommand{

    @Override
    public boolean execute(String command, PlayerChatEvent event, Cid54PlayerListener listener) {
        event.getPlayer().setHealth(20);
        return true;
    }

    @Override
    public String getCommand() {
        return "heal";
    }

    @Override
    public String getHelpText() {
        return "Heals you.";
    }
    
}
